<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
	<title>劳动保护费用详情</title>
	<link rel="stylesheet" href="__PUBLIC__/Labour/css/weui.min.css">
	<link rel="stylesheet" href="__PUBLIC__/Labour/css/bootstrap.min.css">
	<script src="__PUBLIC__/Labour/js/jquery-1.8.2.min.js"></script>
</head>
<body>
<div style="text-align: center;margin-top:4%; margin-bottom:4%">
	<img src="__PUBLIC__/Labour/img/logo.png" alt="logo" width="40%">
</div>

     <div class="form-group">
    <div class="input-group">
        <select class="form-control">
        <?php
                $last_year = date('Y',time());
         ?>
        <?php for($i = 2010; $i<= $last_year; $i++){
            if($data['niandu'] == $i):
        ?>
             <option value="<?php echo $i;?>" selected="selected"><?php echo $i;?></option>
        <?php
            else:
        ?>
             <option value="<?php echo $i;?>"><?php echo $i;?></option>
        <?php
            endif;

        }
        ?>
        </select>
      <div class="input-group-addon">开始查询</div>
    </div>
  </div>

<table class="table table-bordered">
    <tr>
        <td class="text-center bg-primary" >员工姓名</td>
        <td class="text-center bg-primary" >员工部门</td>
       
    </tr>
       <tr>
        <td  class="text-center"><?php if($data['name']){ echo $data['name']; }else{ echo " 没有相关数据"; } ;?></td>
        <td  class="text-center"><?php if($data['bumen']){ echo $data['bumen']; }else{ echo " 没有相关数据"; } ;?></td>
      
    </tr>
</table>




<div class="weui-cells">
    <div class="weui-cell">
        <div class="weui-cell__bd ">
            <p>第一季度费用</p>
        </div>
        <div class="weui-cell__ft"><?php if($data['diyijidu']){ echo $data['diyijidu'];}else{ echo '0';} ;?>元</div>
    </div>
</div>
<div class="weui-cells">
    <div class="weui-cell">
        <div class="weui-cell__bd ">
            <p>第二季度费用</p>
        </div>
        <div class="weui-cell__ft"><?php if($data['dierjidu']){ echo $data['dierjidu'];}else{ echo '0';} ;?>元</div>
    </div>
</div>
<div class="weui-cells">
    <div class="weui-cell">
        <div class="weui-cell__bd ">
            <p>第三季度费用</p>
        </div>
        <div class="weui-cell__ft"><?php if($data['disanjidu']){ echo $data['disanjidu'];}else{ echo '0';} ;?>元</div>
    </div>
</div>
<div class="weui-cells">
    <div class="weui-cell">
        <div class="weui-cell__bd ">
            <p>第四季度费用</p>
        </div>
        <div class="weui-cell__ft"><?php if($data['disijidu']){ echo $data['disijidu'];}else{ echo '0';} ;?>元</div>
    </div>
</div>
            
                <div class="weui-footer" id="footer">
                    <p class="weui-footer__links">
                        <a href="javascript:void(0);" class="weui-footer__link">中国航天-神舟软件</a>
                    </p>
                    <p class="weui-footer__text">Copyright &copy; 2008-2016 </p>
                </div> 
<div class="js_dialog" id="iosDialog2" style="display: none;">
                <div class="weui-mask"></div>
                <div class="weui-dialog">
                    <div class="weui-dialog__bd">没有相关数据请联系管理人员</div>
                    <div class="weui-dialog__ft">
                        <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary" id="qr">确定</a>
                    </div>
                </div>
            </div>
<script>

    
        $('.input-group-addon').click(function(){
            var selectval = $('.form-control').val();
            location.href = "__CONTROLLER__/search/keywords/"+selectval;
            return false;
        })











    <?php if(!$data){?>
    $('#iosDialog2').show();
    <?php }?>
    $('#qr').click(function(){
        $('#iosDialog2').hide();
    })
</script>
<style>
	body{
		font-family: Microsoft YaHei;
	}
	table tr td{
                 width:33%; 
		
	}
            .weui-cells{
                margin-top: 0.2em;

            }
	#footer{
		margin-top:30px;
	}
	imgs{
	width:100px;
	margin:0 auto;
	}
</style>

</html>

